package cloudUser;

import huang.cloudUserApi.AuthFeignClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @program: Smart School
 * @ClassName CloudUserMoudleApplication
 * @description: cloud-user-moudle 启动类
 * @author: 陈智博
 * @create: 2025-03-23 20:28
 * @Version 1.0
 **/
//避免bean 类型, 先 锁定 bean类型
@SpringBootApplication
@EnableFeignClients(clients = {AuthFeignClient.class})
@MapperScan("cloudUser.mapper")
@EnableGlobalMethodSecurity(prePostEnabled = true,securedEnabled = true)
@EnableDiscoveryClient
public class CloudUserMoudleApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudUserMoudleApplication.class, args);
    }

}
